package connector.homework1;

public class Divide implements Compute{
    @Override
    public int computer(int n, int m) {
        int num=0;
        if (n == 0||m==0) {
            System.out.println("被除数和除数不能为0！");
        }
        else{
            num=n/m;
        }
        return num;
    }
}
